package cn.itsource.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 班级
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_exam")
public class Exam {
    //班级id
    @TableId("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     *   答辩
     */
    private String value;
    /**
     * 没有想好该字段的用处
     */
//    private String key;
    /**
     * 1：班级
     * 2：答辩
     */
    private String type;
    @TableField("typename")
    private String typeName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime;

    //答辩状态 0:待答辩 1：答辩完成 -1：答辩作废
    private Integer state;
}